package com.cn.designpatterns.ex.concrete.decorator;

/**
 * @author zhangyi
 * @date 2018/12/25 14:57
 */
public class ConcreteShapeDecorator extends ShapeDecorator {

    public ConcreteShapeDecorator(Shape shape) {
        super(shape);
    }

    @Override
    public void draw() {
        extraOperate();
        shape.draw();
    }
    private void extraOperate(){
        System.out.println("add red color");
    }
}
